package com.youkun.services.impl;

import com.youkun.dao.UserDao;
import com.youkun.entity.User;
import com.youkun.services.UserServices;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by youkun on 2017/3/7.
 */
@Service
public class UserServiceImpl implements UserServices{

    @Autowired
    private UserDao userDao;

    @Override
    public User sava(User user) {
        return userDao.save(user);
    }

    @Override
    public User findByuserName(String username) {
        return userDao.findByUserName(username);
    }
}
